<template>
        <slot></slot>
        <slot name="btn"></slot>
        <!-- 传值！ -->
        <slot name="btn1" title="哈哈哈哈" :mynum="num"></slot>
</template>

<script lang='ts' setup>
import { reactive , toRefs } from 'vue'
        
let { num } = toRefs(reactive({
    num:20
    
    
}))
</script>
 
<style lang="less" scoped>
    
</style>